﻿using System;
using System.Collections.Generic;

namespace OpenWaves.EPiServer.ImageProperty
{
    public class ListBasedImageMediaTypeResolver : IImageMediaTypeResolver
    {
        private readonly Type[] supportedTypes;

        public ListBasedImageMediaTypeResolver(params Type[] supportedTypes)
        {
            this.supportedTypes = supportedTypes;
        }

        public IEnumerable<Type> GetImageMediaTypes()
        {
            return this.supportedTypes;
        }
    }

}